package com.sjksy.demo.dto.ledger;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class LedgerRouteStatisticDto {

    private Integer routeId; // 对应 tr.route_id
    private String routeName; // 对应 tr.route_name
    private BigDecimal routeCost; // 对应 tr.price as route_cost
    private Long orderCount; // 对应 COUNT(l.ledger_id) as order_count
    private BigDecimal totalInsurance; // 对应 SUM(tc.insurance) as total_insurance
    private BigDecimal totalIncome; // 对应 SUM(tc.money) as total_income
    private BigDecimal profit; // 对应 SUM(tc.money - tr.price - tc.insurance) as profit

}
